from django.urls import path, re_path
from . import views

urlpatterns = [
    path('', views.articles),   # TODO: http://127.0.0.1:8000/articles/
    re_path(r'(?P<year>[0-9]{4})/', views.articles_year),   # TODO: http://127.0.0.1:8000/articles/2021/
    re_path(r'(?P<year>[0-9]{4})/(?P<month>[0-9]{2})/', views.articles_year_month)  # TODO: http://127.0.0.1:8000/articles/2020/12/
]